package com.hifar.test.syncData.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author zhuWeiWei
 * @description 批量更新同步时间VO
 * @date 2025/10/29
 */
@Data
@ApiModel("批量更新同步时间VO")
public class BatchUpdateSyncTimeVO {

    @ApiModelProperty(value = "ID列表", required = true)
    @NotEmpty(message = "ID列表不能为空")
    private List<String> idList;

    @ApiModelProperty(value = "最后同步时间", required = true)
    @NotNull(message = "最后同步时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastSyncTime;
}

